﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Slide_Info.ascx.cs" Inherits="AdminPortal_Controls_Banner_Slide_Info" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register src="../Toolbox.ascx" tagname="Toolbox" tagprefix="uc1" %>
<%@ Register src="../FileUpload.ascx" tagname="FileUpload" tagprefix="uc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<span style="color:Red;font-style:italic;font-size:11px;margin-bottom:5px;display:block;"><asp:Label ID="lblthongbao" runat="server" Text=""></asp:Label></span>
<div id="HNGdatagridInfo">
    <div class="header-datagrid">
        <span class="icon-edit header-text">
                <asp:Label ID="lblTitle" runat="server" Text="Danh sách lên hệ"></asp:Label>
        </span>
    </div>
    <div class="navibar-control">
            <uc1:Toolbox ID="Toolbox1" runat="server" ShowSave="true" OnSaveClick="btnSave_Click"
                                                      ShowDel="true" OnDelClick="btnDel_Click"
                                                      ShowApply="true" OnApplyClick="btnApply_Click"
                                                      ShowRefesh="true" ShowBack="true" OnBackClick="btnBack_Click"
                                                        />        
        <div class="clearB"></div>
    </div>
    <div class="content-main"> 
        <table cellpadding="0" cellspacing="0" width="100%" class="tableEditInfo">
            <tr>
                <td width="120" class="itemTableLeft">ID</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtID" runat="server" Width="50px" Enabled="false"></asp:TextBox>
                    <asp:HiddenField ID="hidID" runat="server" />
                </td>
            </tr>   
            <tr>
                <td class="itemTableLeft" width="130">Tên banner: </td>
                <td align="left" class="itemTableRight">
                    <asp:TextBox ID="txtTenbanner" runat="server" Width="400"  class="easyui-validatebox" required="true" >
                    </asp:TextBox>         
                </td>
            </tr>   
            <tr>
                <td class="itemTableLeft" >Url </td>
                <td align="left" class="itemTableRight">
                    <asp:TextBox ID="txtUrl" runat="server" Width="400">
                    </asp:TextBox> </td>
            </tr>
            <tr>
                <td class="itemTableLeft" valign="top">Kích thước :</td>
                <td align="left" class="itemTableRight">
                    Dài
                    <asp:TextBox ID="txtWidth" runat="server" Width="60"></asp:TextBox> 
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtWidth"
                                            Display="Dynamic" ErrorMessage="số không hợp lệ" 
                        ValidationExpression="^\d+$" Font-Size="12px"></asp:RegularExpressionValidator>
                    Cao 
                    <asp:TextBox ID="txtHeight" runat="server" Width="60"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtHeight"
                                            Display="Dynamic" ErrorMessage="số không hợp lệ" 
                        ValidationExpression="^\d+$" Font-Size="12px"></asp:RegularExpressionValidator>
                    </td>
            </tr>                                                 
            <tr>
                <td class="itemTableLeft" valign="top"> Thời gian: </td>
                <td class="itemTableRight">                                
                    Từ ngày<asp:TextBox ID="txtDateTo" runat="server"></asp:TextBox> 
                            <cc1:CalendarExtender ID="txtBirthDay_CalendarExtender" runat="server" 
                                TargetControlID="txtDateTo" Format="MM/dd/yyyy">
                            </cc1:CalendarExtender>
                    đến ngày<asp:TextBox ID="txtDateFrom" runat="server"></asp:TextBox> 
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                                TargetControlID="txtDateFrom" Format="MM/dd/yyyy">
                            </cc1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft" >Hiển thị</td>
                <td class="itemTableRight">
                    <asp:CheckBox ID="chkStatus" runat="server" Checked="True" Text="Trạng thái" />    
                                  (Chọn mục này nếu bạn muốn ẩn / hiện thư mục tin)
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft" >Thứ tự</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtThuTu" runat="server" Width="50"></asp:TextBox> 
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtThuTu"
                                            Display="Dynamic" ErrorMessage="số không hợp lệ" 
                        ValidationExpression="^\d+$" Font-Size="12px"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft" valign="top">Upload Ảnh</td>
                <td class="itemTableRight">
                     <uc2:FileUpload ID="FileUpload1" runat="server" UploadFolder="~/upload/Slide/" />
                                <asp:Image ID="img_news" runat="server" Width="35" ImageAlign="Bottom" Visible="false" ></asp:Image>
                                &nbsp;<asp:ImageButton ID="imgbtn_Delete" runat="server" Width="16" Height="16" 
                                    onclick="imgbtn_Delete_Click" Enabled="false" ToolTip="xoá ảnh" /><asp:Label ID="lblDelete" runat="server" Text="xoá ảnh" Visible="false"/>
                </td>
            </tr> 
            <tr>
                <td class="itemTableLeft" >Mô tả ảnh: </td>
                <td align="left" class="itemTableRight">
                    <asp:TextBox ID="txtMoTa" runat="server" Width="400" TextMode="MultiLine" Height="50">
                    </asp:TextBox> </td>
            </tr>            
        </table>              
    </div>
</div>